import csv

def writeDate_to_file(filename,str,type):
    with open(filename, type, encoding='utf-8') as filewr:
        filewr.write(str)